<h2>Gestion des candidats</h2>

<table class="dataTable">
	<thead>
		<tr>
			<th>Nom</th>
			<th>Prénom</th>
			<th>E-mail</th>
			<th>Créé le</th>
			<th>Statut</th>
			<th>Actions</th>
		</tr>
	</thead>
	<tbody>
		<?php foreach ($users as $user) { ?>
			<tr id="user_<?= $user->id ?>">
				<td><?= $user->name ?></td>
				<td><?= $user->firstname ?></td>
				<td><?= $user->email ?></td>
				<td><?= time_to_str($user->created_at) ?></td>
				<td><?= $user->status_label ?></td>
				<td class="actions">
					<?= details_link($user, 'user_details') ?>
					<?= anchor('admin/candidats/get_pdf/'.$user->id, icon_tag('page_white_acrobat'), 'title="Télécharger le dossier du candidat"') ?>
					<?= edit_link($user, 'candidats/user_edit') ?>
					<?= delete_link($user, 'user_delete') ?>
				</td>
			</tr>
		<?php } ?>
	</tbody>
</table>
